home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-1.iso / Files / System7 tools / Frontier / Random fortune cookie.sit / random fortune cookie ƒ / TRT.Randomize DocServer Text next >
Encoding:
Text File  |  1992-01-25  |  746 b   |  9 lines  |  [TEXT/ttxt]

  1. Verb    Randomize
  2. Syntax    Randomize ()
  3. Parameters    None required.
  4. Action    Randomizes the pseudo-random number generator.
  5. Returns    True if successful.
  6. Example    Randomize ()
  7.     » true
  8. Notes    This verb overcomes a bug in Frontier™ 1.0. The bug is that the pseudo-random number generator uses the same sequence everytime Frontier is launched - this may be useful in some circumstances, but was not for me. When the Randomize verb is installed in Frontier, a code resource (of type RAND) is added to the Frontier.root file - the code contained in this resource "seeds" the psuedo-random number generator sequence with the current time of day. A call to Randomize in your customStartup script is suggested. This verb and code is copyrighted 1992 by Terry Teague.
  9.